home *** CD-ROM | disk | FTP | other *** search
/ No Fragments Archive 12: Textmags & Docs / nf_archive_12.iso / MAGS / SOURCES / ATARI_SRC.ZIP / atari source / AHDI / TTFHDX / DEFS.HTT < prev    next >
Encoding:
Text File  |  2001-02-09  |  2.3 KB  |  89 lines

  1. ;+
  2. ; Conditional assembly
  3. ;-
  4. SCDMA    equ    1            ; 0: not doing SCSI DMA
  5. ODMA    equ    0            ; 0: not using Old DMA controller
  6. SCFRDMA    equ    1            ; 0: don't allow SCSI DMA to fast RAM
  7. VI    equ    0            ; 1: SCSI vectored-interrupts enabled
  8. DRIVER    equ    0            ; 0: code not to be included in driver
  9. DEBUG    equ    0            ; 0: don't include debugging code
  10. RDWDL    equ    0            ; 0: don't need extra read from WDL
  11.  
  12. ;+
  13. ; Restraints 
  14. ;-
  15. MAXUNITS    equ    14        ; max # of log units w/o drv A & B
  16. MAXACSI        equ    8        ; maximum number of ACSI devices
  17. MAXSCSI        equ    8        ; maximum number of SCSI devices
  18. ACSIUNT        equ    7        ; highest ACSI unit number
  19. SCSIUNT        equ    15        ; highest SCSI unit number
  20. MAXACSECTS    equ    254        ; max # of sectors at one ACSI gulp
  21. MAXSCSECTS    equ    65534        ; max # of sectors at one SCSI gulp
  22.  
  23.  
  24. ;+
  25. ; Offsets to ...
  26. ;-
  27. DOSPM        equ    $1be        ; MSDOS boot sect's partition map
  28. DOSSIG        equ    $1fe        ; MSDOS boot sect's signature
  29. HDSIZ        equ    $1c2        ; offset to GEMDOS root sect's 
  30.                     ; hard disk size
  31.  
  32. ;+
  33. ; Constants and Variables
  34. ;-
  35. SIG        equ    $55aa        ; signature for valid MSDOS boot sects
  36. NRETRIES    equ    3        ; #retries-1
  37. MAXNPART    equ    3        ; #partition entries in root sect - 1
  38. BPBLEN        equ    18        ; length of bpb entry in bytes
  39. FATLEN        equ    64        ; max fat size = 64 sectors
  40. SERLEN        equ    3        ; length of a serial # in bytes
  41. CHKDATE        equ    $19870422    ; ROM date for bootstop checking
  42.  
  43.  
  44. ;+
  45. ; Number of bytes per Buffer Control Block (excluding the data block itself)
  46. ;
  47. ; struct_bcb {
  48. ;     struct_bcb    *b_link;    /* 4 bytes */
  49. ;    int        b_neg1;        /* 2 bytes */
  50. ;    int        b_private[5];    /* 10 bytes */
  51. ;    char        *b_bufr;    /* 4 bytes */
  52. ; };
  53. ;
  54. ; For GEMDOS buffer lists.
  55. ;-
  56. BCBLEN        equ    20
  57.  
  58.  
  59. ;+
  60. ; for extension of os pool
  61. ;-
  62. chunksiz    equ     66        ; #bytes/chunk
  63. chunkno        equ     4        ; chunk# (4 16-byte chunks)
  64.  
  65.  
  66. ;+
  67. ; for checking existence of fast RAM
  68. ;    If long word at _ramvalid == RAMMAGIC
  69. ; then  _ramtop is valid.  If _ramtop contains 0, no fast RAM is available,
  70. ; else _ramtop contains the address of top (end) of memory
  71. ;
  72. ; Fast RAM always starts at $01000000.
  73. ; _ramtop may hold $01000000 meaning there is no fast RAM!
  74. ;
  75. ; RAMRSV must be smaller than MAXACSECTS
  76. ;-
  77. RAMMAGIC    equ    $1357bd13    ; magic cookie for fast RAM
  78. RAMBOT        equ    $01000000    ; where fast RAM starts
  79. RAMRSV        equ    $80        ; # sectors of reserved RAM (64k)
  80.  
  81.  
  82. ;+
  83. ; Vector address
  84. ;-
  85. BERR        equ    $8        ; Bus ERRor vector
  86. IINS        equ    $10        ; Illegal INStruction vector
  87.  
  88.  
  89.